﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="NewTour.aspx.cs" Inherits="TourAgency.Admin.Create.NewTour" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 70%;
        }
        .style2
        {
            width: 102px;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <asp:Label runat="server" ID="labelPageInfo">
        Create new tour</asp:Label>
    <asp:UpdatePanel ID="leftUpdatePanel" runat="server">
        <ContentTemplate>
            <asp:Panel ID="leftPanelNewTour" runat="server">
                <table class="style1">
                    <tr>
                        <td class="style2">
                            Destination
                        </td>
                        <td>
                            <asp:DropDownList runat="server" ID="dropDownListDestinations" DataTextField="Name"
                                DataValueField="ID">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            Start Date
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="textBoxStartDate" Width="215px" Enabled="false"></asp:TextBox>
                            <asp:CalendarExtender ID="startDateCalendar" runat="server" TargetControlID="textBoxStartDate"
                                Format="MM-dd-yyyy" PopupButtonID="startDateCalendarImg">
                            </asp:CalendarExtender>
                            <asp:Image runat="server" ID="startDateCalendarImg" ImageUrl="~/Styles/images/Calendar.png" />
                    </tr>
                    <tr>
                        <td class="style2">
                            End Date
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="textBoxEndDate" Width="215px" Enabled="false"></asp:TextBox>
                            <asp:CalendarExtender ID="endDateCalendar" runat="server" TargetControlID="textBoxEndDate"
                                Format="MM-dd-yyyy" PopupButtonID="endDateCalendarImg">
                            </asp:CalendarExtender>
                            <asp:Image runat="server" ID="endDateCalendarImg" ImageUrl="~/Styles/images/Calendar2.png" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            Price
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="textBoxPrice" Width="215px"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="MinPriceRegExValidator" runat="server" ErrorMessage="Invalid Minimum Price"
                                ValidationExpression="(0|[1-9]{1}\d*)(\.\d+)?" ControlToValidate="textBoxPrice"
                                CssClass="failureNotification">*</asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            Description
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="textBoxDescription" Width="215px" TextMode="MultiLine"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            Transport
                        </td>
                        <td>
                        <asp:DropDownList runat="server" ID="dropDownListTransports" DataTextField="Name"
                                DataValueField="ID">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            Board
                        </td>
                        <td>
                        <asp:DropDownList runat="server" ID="dropDownListBoards" DataTextField="Name"
                                DataValueField="ID">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            &nbsp;
                        </td>
                        <td>
                            <asp:Button ID="buttonSubmit" runat="server" Text="Submit" 
                                onclick="buttonSubmit_Click" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="rightUpdatePanel" runat="server">
        <ContentTemplate>
            <asp:Panel ID="rightPanelNewTour" runat="server">
                <h3>
                    Hotel Facilities</h3>
                <hr />
                <asp:CheckBoxList runat="server" ID="checkBoxHotelFacilities" DataTextField='Name'
                    DataValueField='ID' RepeatColumns="3">
                </asp:CheckBoxList>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
